package org.rsbot;

import org.rsbot.gui.Chrome;
import org.rsbot.gui.LoadScreen;

import javax.swing.*;

public class Application {
    private static Chrome gui;

    public static void main(final String[] args) {
        JFrame.setDefaultLookAndFeelDecorated(true);
        try {
            UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
        } catch (final Exception ignored) {
        }
        if (LoadScreen.showDialog()) {
            SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    gui = new Chrome();
                }
            });
        }
    }

    public static Chrome getGui() {
        return gui;
    }
}
